home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: net.ricks.edu!usenet
- From: yourmail@ricks.edu (Your Name)
- Subject: Re: Two Stupid Newbie Questions
- Message-ID: <DLCF5y.6It@ricks.edu>
- Sender: usenet@ricks.edu (usenet)
- Organization: Ricks College
- X-Newsreader: Forte Free Agent 1.0.82
- References: <4d9qc7$m8t@news.fsu.edu>
- Date: Wed, 17 Jan 1996 21:48:38 GMT
-
- colvin@xi.cs.fsu.edu (Joshua Colvin) wrote:
-
-
-
-
- > Howdy all! Okay...quickees here:
- >
- > 1) When I move an image around the screen I draw it in a position and
- > then replace it using putimage(blah, XOR_PUT); but this creates a
- > flickering effect. Is it becuase my computer's just too slow to make
- > the movement appear smooth, or is there a better way to move an image
- > around on the screen?
- >
- > 2) When should I use malloc() as opposed to farmalloc() ?
- >
- >Thanx. :)
- >
- >Joshua Colvin
- >colvin@cs.fsu.edu
-
- Hey Joshua,
-
- I think you are out of luck when it comes to using putimage().
- You might try loading the images into memory before displaying them.
-
- If you are using c++ I wouldn't use malloc at all. Use new()
- instead. It is much more efficient.
-
- j
-
-